package ro.toporjinschi.androidorm;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

public final class FieldMetaData {
    private Field field;
    private String fieldName;
    private String dbName;
    private Class<?> type;
    private boolean id;
    private Method setMethod;
    private Method getMethod;
    
    public FieldMetaData() {
    }

    public FieldMetaData(Field field, String fieldName, String dbName, Class<?> type, boolean isId) {
        super();
        this.field = field;
        this.fieldName = fieldName;
        this.dbName = dbName;
        this.type = type;
        this.id = isId;
    }

    public boolean isId() {
        return id;
    }

    public void setId(boolean id) {
        this.id = id;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public Class<?> getType() {
        return type;
    }

    public Method getSetMethod() {
        return setMethod;
    }

    public void setSetMethod(Method setMethod) {
        this.setMethod = setMethod;
    }

    public Method getGetMethod() {
        return getMethod;
    }

    public void setGetMethod(Method getMethod) {
        this.getMethod = getMethod;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }

}
